import axios from "./axiosInstanceWithToken";

function getFavorList() {
    return axios.get("/favor/getFavorList",{
        params : {
        

        },
        method : "GET"
    })
}

function addFavor(messageId, info) {
    return axios.post('/favor/addFavor', {
        messageId,
        info: JSON.stringify(info)
    })
}

function removeFavor(messageId) {
    return axios.post('/favor/removeFavor', {
        messageId
    })

}

export {addFavor, getFavorList, removeFavor}